@if "%1"=="" @set outdir=D:\leaflike\OpenCV2.1(x86)

::create directory
mkdir bin
mkdir lib
mkdir release

::copy the following dlls to bin directory
@xcopy %outdir%\bin\cv210.dll bin /R /Y /E
@xcopy %outdir%\bin\cxcore210.dll bin /R /Y /E
@xcopy %outdir%\bin\highgui210.dll bin /R /Y /E
@xcopy lib\dllexport.dll bin /R /Y /E

::copy the following libs to lib directory
@xcopy %outdir%\lib\cv210.lib lib /R /Y /E
@xcopy %outdir%\lib\cxcore210.lib lib /R /Y /E
@xcopy %outdir%\lib\highgui210.lib lib /R /Y /E

@xcopy lib\dllexport.pdb bin /R /Y /E